// Hardcoded Information about Source Insight (insight3.exe)

#pragma once

#define TASKMGR_END_PROCESS_CMD				40028	// first element of Task Manager default process popup menu

extern LPCTSTR lpszSplashWndText;
extern LPCTSTR lpszSplashWndClass;

extern LPCTSTR lpszSourceInsight;
extern LPCTSTR lpszSiFrameWndClass;
extern LPCTSTR lpszChindFrameWndClass;
extern LPCTSTR lpszMdiClientWndClass;

extern LPCTSTR lpszDllFileName;
extern LPCTSTR lpszBmpFileName;
extern LPCTSTR lpszTextMark;

#define TASKMGR_PROCESS_LIST_DLG_ID			0x3F1	// 1009
#define TASKMGR_APPLICATIONS_LIST_DLG_ID	0x41D	// 1053

//#define TASKMGR_APPLICATIONS_LIST_ITEM_2_IMAGE( iItem )		(iItem+1) // bad

#define SIEX_PLUS_SUBMENU_INDEX          		7
//#define TMEX_EXTENSION_MENU_FIRST_ITEM		ID_EXTENSION_FINDUSEDFILE
//#define TMEX_CPU_MENU_FIRST_ITEM			ID_EXTENSION_CPU00


BOOL IsSourceInsightFrameWnd(HWND hWnd);

BOOL CALLBACK EnumWindowsProc(HWND hwnd,LPARAM lParam);

HWND FindSourceInsightFrameWindow();

BOOL HookSourceInsightWindow(HWND hSiWnd, LPCTSTR lpszHookDll);

BOOL FindAndHookSourceInsightWindow(LPCTSTR lpszHookDll);

BOOL GetFileNameFromSiCaption(LPCTSTR lpszSiCaption, LPTSTR lpszBuffer, int nBufSize);